package com.wn.class30.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * meal
 * @author 
 */
@Data
@NoArgsConstructor
public class Meal implements Serializable {
    /**
     * 套餐ID
     */
    private Integer mealId;

    /**
     * 套餐名称
     */
    private String mealName;

    /**
     * 套餐所需金额
     */
    private Double mealMoney;

    /**
     * 套餐描述
     */
    private String mealContent;

    /**
     * 创建时间
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date mealCreatetime;

    /**
     * 套餐状态
     */
    private Integer mealStatus;

    private static final long serialVersionUID = 1L;



    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", mealId=").append(mealId);
        sb.append(", mealName=").append(mealName);
        sb.append(", mealMoney=").append(mealMoney);
        sb.append(", mealContent=").append(mealContent);
        sb.append(", mealCreatetime=").append(mealCreatetime);
        sb.append(", mealStatus=").append(mealStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}